package cn.edu.neu.springbootdemo.mapper;

import java.util.List;

import cn.edu.neu.springbootdemo.model.Pingfen;
import org.apache.ibatis.annotations.Mapper;

import cn.edu.neu.springbootdemo.model.User;
import org.springframework.stereotype.Component;

@Mapper//使用@Mapper注解，表示这是操作数据库的mapper，
@Component
public interface UserMapper {

    User existsUser(User user);

    List<User> getUserList();

    List<User> getfindUser(User user);

    Boolean deleteUser(int a);

    void addUser(User user);

    User findById(User user);

    void upData(User user);

    Pingfen getRate(int id);

    void addRate(int id,int rate);
}
